<html>
    <head>
        <?= $this->headTitle('TP1-Ecommerce') ?>
        <?= $this->headLink()->appendStylesheet($this->baseUrl().'/styles/design.css','screen') ?>
        <?= $this->headStyle() ?>
        <?= $this->headScript()->appendFile($this->baseUrl().'/scripts/script.js')
                ->appendFile($this->baseUrl().'/scripts/jquery-1.4.2.js') ?>
        <?= $this->headMeta() ?>
    </head>
    <body>
        <div id="header">
            <h1><a href="<?= $this->baseUrl()?>/">TP1 E-Commerce</a></h1>
            <?= $this->profileLink();  ?>
            <p id="nav">
                <a href="<?= $this->baseUrl() ?>/">Liste des produits</a>
                <?php
                $auth = Zend_Auth::getInstance();
                if ($auth->hasIdentity()) {
                    $helperUrl = new Zend_View_Helper_Url ( );
                    $url = $helperUrl->url(array('controller'=>'panier'));
                    ?>
                    <a href="<?= $url ?>">Mon panier</a>
                    <?
                }

                ?>
            </p>
        </div>

        <div id="container">
            <div id="content">
                <?php echo $this->layout()->content ?>
                <br />
            </div>
        </div>

        <div id="footer">
            <p><a href="http://www.lyrixx.info">Pineau Gr&eacute;goire</a></p>
        </div>
    </body>
</html>